<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Core Plot (iOS): Source/CPTUtilities.h File Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="customdoxygen.css" rel="stylesheet" type="text/css" />
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>


</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  <td id="projectlogo"><img alt="Logo" src="core-plot-logo.png"/></td>
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">Core Plot (iOS)
   
   </div>
   <div id="projectbrief">Cocoa plotting framework for Mac OS X and iOS</div>
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.6.1 -->
<script type="text/javascript" src="dynsections.js"></script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="modules.html"><span>Animation&#160;&&#160;Constants</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('_c_p_t_utilities_8h.html','');
</script>
<div id="doc-content">
<div class="header">
  <div class="headertitle">
<div class="title">Source/CPTUtilities.h File Reference</div>  </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#import &lt;Foundation/Foundation.h&gt;</code><br/>
<code>#import &quot;<a class="el" href="_c_p_t_definitions_8h_source.html">CPTDefinitions.h</a>&quot;</code><br/>
</div><div class="textblock"><div id="dynsection-0" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-0-trigger" src="closed.png" alt="+"/> Include dependency graph for CPTUtilities.h:</div>
<div id="dynsection-0-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-0-content" class="dyncontent" style="display:none;">
<div class="center"><img src="_c_p_t_utilities_8h__incl.png" border="0" usemap="#_source_2_c_p_t_utilities_8h" alt=""/></div>
<map name="_source_2_c_p_t_utilities_8h" id="_source_2_c_p_t_utilities_8h">
<area shape="rect" id="node5" href="_c_p_t_definitions_8h.html" title="CPTDefinitions.h" alt="" coords="246,86,375,117"/></map>
</div>
</div><div class="textblock"><div id="dynsection-1" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-1-trigger" src="closed.png" alt="+"/> This graph shows which files directly or indirectly include this file:</div>
<div id="dynsection-1-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-1-content" class="dyncontent" style="display:none;">
<div class="center"><img src="_c_p_t_utilities_8h__dep__incl.png" border="0" usemap="#_source_2_c_p_t_utilities_8hdep" alt=""/></div>
<map name="_source_2_c_p_t_utilities_8hdep" id="_source_2_c_p_t_utilities_8hdep">
<area shape="rect" id="node3" href="_core_plot-_cocoa_touch_8h_source.html" title="CorePlot&#45;CocoaTouch.h" alt="" coords="5,86,181,117"/></map>
</div>
</div>
<p><a href="_c_p_t_utilities_8h_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="func-members"></a>
Functions</h2></td></tr>
<tr><td colspan="2"><div class="groupHeader">Convert NSDecimal to primitive types</div></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_c_p_t_utilities_8h.html#af1b1773a3749df0597fcdfaca9a93718">CPTDecimalCharValue</a> (<a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a> decimalNumber)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Converts an <a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a> value to an 8-bit integer.  <a href="#af1b1773a3749df0597fcdfaca9a93718"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int16_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_c_p_t_utilities_8h.html#af541b78435bd6954522ea69d59e0549b">CPTDecimalShortValue</a> (<a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a> decimalNumber)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Converts an <a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a> value to a 16-bit integer.  <a href="#af541b78435bd6954522ea69d59e0549b"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_c_p_t_utilities_8h.html#aa77e18a004fab76d1bffa9cb602977b3">CPTDecimalLongValue</a> (<a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a> decimalNumber)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Converts an <a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a> value to a 32-bit integer.  <a href="#aa77e18a004fab76d1bffa9cb602977b3"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int64_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_c_p_t_utilities_8h.html#a63cff45777b63382e57cb735018a9a38">CPTDecimalLongLongValue</a> (<a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a> decimalNumber)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Converts an <a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a> value to a 64-bit integer.  <a href="#a63cff45777b63382e57cb735018a9a38"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_c_p_t_utilities_8h.html#a9df871890b9cedb5cae4787775e17252">CPTDecimalIntValue</a> (<a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a> decimalNumber)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Converts an <a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a> value to an int.  <a href="#a9df871890b9cedb5cae4787775e17252"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSInteger</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_c_p_t_utilities_8h.html#a72d99fc7ddcdc1006e5e49108d0cd809">CPTDecimalIntegerValue</a> (<a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a> decimalNumber)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Converts an <a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a> value to an <a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSInteger</a>.  <a href="#a72d99fc7ddcdc1006e5e49108d0cd809"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_c_p_t_utilities_8h.html#a72a99bddbab76461d4f2e3b741aab535">CPTDecimalUnsignedCharValue</a> (<a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a> decimalNumber)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Converts an <a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a> value to an unsigned 8-bit integer.  <a href="#a72a99bddbab76461d4f2e3b741aab535"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">uint16_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_c_p_t_utilities_8h.html#a00cd4fa9bc439191406e291fcc1d73cb">CPTDecimalUnsignedShortValue</a> (<a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a> decimalNumber)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Converts an <a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a> value to an unsigned 16-bit integer.  <a href="#a00cd4fa9bc439191406e291fcc1d73cb"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_c_p_t_utilities_8h.html#a9cde6ebaf91c8fe7f90c0550734586a0">CPTDecimalUnsignedLongValue</a> (<a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a> decimalNumber)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Converts an <a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a> value to an unsigned 32-bit integer.  <a href="#a9cde6ebaf91c8fe7f90c0550734586a0"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">uint64_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_c_p_t_utilities_8h.html#aac297dcc70a6e086654339da0e626a5c">CPTDecimalUnsignedLongLongValue</a> (<a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a> decimalNumber)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Converts an <a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a> value to an unsigned 64-bit integer.  <a href="#aac297dcc70a6e086654339da0e626a5c"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">unsigned int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_c_p_t_utilities_8h.html#adcbdbd10791c880ee51e1c1e47929df1">CPTDecimalUnsignedIntValue</a> (<a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a> decimalNumber)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Converts an <a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a> value to an unsigned int.  <a href="#adcbdbd10791c880ee51e1c1e47929df1"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSUInteger</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_c_p_t_utilities_8h.html#af9a02673f40413173f4ed6915a107362">CPTDecimalUnsignedIntegerValue</a> (<a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a> decimalNumber)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Converts an <a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a> value to an <a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSUInteger</a>.  <a href="#af9a02673f40413173f4ed6915a107362"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_c_p_t_utilities_8h.html#ae975df8171015ce0f466726e71f26f0d">CPTDecimalFloatValue</a> (<a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a> decimalNumber)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Converts an <a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a> value to a float.  <a href="#ae975df8171015ce0f466726e71f26f0d"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_c_p_t_utilities_8h.html#a5ed2ce247bc38d2b436ddb5db5f956a0">CPTDecimalDoubleValue</a> (<a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a> decimalNumber)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Converts an <a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a> value to a double.  <a href="#a5ed2ce247bc38d2b436ddb5db5f956a0"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">CGFloat&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_c_p_t_utilities_8h.html#a4cbe3c7b322be2c7fdbe445c1af9b87f">CPTDecimalCGFloatValue</a> (<a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a> decimalNumber)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Converts an <a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a> value to a CGFloat.  <a href="#a4cbe3c7b322be2c7fdbe445c1af9b87f"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Classes/NSString_Class/Reference/NSString.html">NSString</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_c_p_t_utilities_8h.html#a5b35d9676fb874067f556ace3e0e1455">CPTDecimalStringValue</a> (<a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a> decimalNumber)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Converts an <a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a> value to an <a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Classes/NSString_Class/Reference/NSString.html">NSString</a>.  <a href="#a5b35d9676fb874067f556ace3e0e1455"></a><br/></td></tr>
<tr><td colspan="2"><div class="groupHeader">Convert primitive types to NSDecimal</div></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_c_p_t_utilities_8h.html#a81353fb234909d9b7d491210b904f6f4">CPTDecimalFromChar</a> (int8_t i)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Converts an 8-bit integer value to an <a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a>.  <a href="#a81353fb234909d9b7d491210b904f6f4"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_c_p_t_utilities_8h.html#a18f20748526508d138192c75f490ccdd">CPTDecimalFromShort</a> (int16_t i)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Converts a 16-bit integer value to an <a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a>.  <a href="#a18f20748526508d138192c75f490ccdd"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_c_p_t_utilities_8h.html#a7c08754252c04cf22bb375793048e137">CPTDecimalFromLong</a> (int32_t i)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Converts a 32-bit integer value to an <a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a>.  <a href="#a7c08754252c04cf22bb375793048e137"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_c_p_t_utilities_8h.html#ab7d7b876754072c9c41bbbf6890a901a">CPTDecimalFromLongLong</a> (int64_t i)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Converts a 64-bit integer value to an <a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a>.  <a href="#ab7d7b876754072c9c41bbbf6890a901a"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_c_p_t_utilities_8h.html#a1e357f0a18b4d94f218b8a8afeeb3162">CPTDecimalFromInt</a> (int i)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Converts an int value to an <a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a>.  <a href="#a1e357f0a18b4d94f218b8a8afeeb3162"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_c_p_t_utilities_8h.html#ac76a8b7404db9f17124e10f3c2d2c715">CPTDecimalFromInteger</a> (<a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSInteger</a> i)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Converts an <a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSInteger</a> value to an <a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a>.  <a href="#ac76a8b7404db9f17124e10f3c2d2c715"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_c_p_t_utilities_8h.html#a059a5020dcbf6d62ce772002e29a8e18">CPTDecimalFromUnsignedChar</a> (uint8_t i)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Converts an unsigned 8-bit integer value to an <a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a>.  <a href="#a059a5020dcbf6d62ce772002e29a8e18"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_c_p_t_utilities_8h.html#a2964d83bf11ac682a07702c466d7d147">CPTDecimalFromUnsignedShort</a> (uint16_t i)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Converts an unsigned 16-bit integer value to an <a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a>.  <a href="#a2964d83bf11ac682a07702c466d7d147"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_c_p_t_utilities_8h.html#a9e0de85cd00d4e874b64037f4c6ca900">CPTDecimalFromUnsignedLong</a> (uint32_t i)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Converts an unsigned 32-bit integer value to an <a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a>.  <a href="#a9e0de85cd00d4e874b64037f4c6ca900"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_c_p_t_utilities_8h.html#aef8f88dc07c2d46150198b4d13618308">CPTDecimalFromUnsignedLongLong</a> (uint64_t i)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Converts an unsigned 64-bit integer value to an <a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a>.  <a href="#aef8f88dc07c2d46150198b4d13618308"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_c_p_t_utilities_8h.html#adb5c145464ebbc87bef7b33f2431fdc3">CPTDecimalFromUnsignedInt</a> (unsigned int i)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Converts an unsigned int value to an <a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a>.  <a href="#adb5c145464ebbc87bef7b33f2431fdc3"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_c_p_t_utilities_8h.html#a1970a76e2fccbfcf42c75b6f919220f0">CPTDecimalFromUnsignedInteger</a> (<a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSUInteger</a> i)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Converts an <a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSUInteger</a> value to an <a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a>.  <a href="#a1970a76e2fccbfcf42c75b6f919220f0"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_c_p_t_utilities_8h.html#a0f6ee8401b3f93ded7b132adbda639e7">CPTDecimalFromFloat</a> (float f)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Converts a float value to an <a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a>.  <a href="#a0f6ee8401b3f93ded7b132adbda639e7"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_c_p_t_utilities_8h.html#a276093946edc6466a5886b116860c2ac">CPTDecimalFromDouble</a> (double d)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Converts a double value to an <a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a>.  <a href="#a276093946edc6466a5886b116860c2ac"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_c_p_t_utilities_8h.html#ad1a6f7e9240714fecd7ff35661cd1dc6">CPTDecimalFromCGFloat</a> (CGFloat f)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Converts a CGFloat value to an <a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a>.  <a href="#ad1a6f7e9240714fecd7ff35661cd1dc6"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_c_p_t_utilities_8h.html#ae35782b504e6aa284cc322a40bb5a2fd">CPTDecimalFromString</a> (<a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Classes/NSString_Class/Reference/NSString.html">NSString</a> *stringRepresentation)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Parses a string and extracts the numeric value as an <a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a>.  <a href="#ae35782b504e6aa284cc322a40bb5a2fd"></a><br/></td></tr>
<tr><td colspan="2"><div class="groupHeader">NSDecimal arithmetic</div></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_c_p_t_utilities_8h.html#a985b63fe956e796f53954a568487b522">CPTDecimalAdd</a> (<a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a> leftOperand, <a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a> rightOperand)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Adds two NSDecimals together.  <a href="#a985b63fe956e796f53954a568487b522"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_c_p_t_utilities_8h.html#a397872f689275f5db199097a5a4bf8ee">CPTDecimalSubtract</a> (<a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a> leftOperand, <a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a> rightOperand)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Subtracts one <a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a> from another.  <a href="#a397872f689275f5db199097a5a4bf8ee"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_c_p_t_utilities_8h.html#a66a98d0312337dd95a4f67356d773631">CPTDecimalMultiply</a> (<a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a> leftOperand, <a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a> rightOperand)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Multiplies two NSDecimals together.  <a href="#a66a98d0312337dd95a4f67356d773631"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_c_p_t_utilities_8h.html#a59d907ee85b5444b8d8f1582dbe130f9">CPTDecimalDivide</a> (<a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a> numerator, <a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a> denominator)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Divides one <a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a> by another.  <a href="#a59d907ee85b5444b8d8f1582dbe130f9"></a><br/></td></tr>
<tr><td colspan="2"><div class="groupHeader">NSDecimal comparison</div></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/ObjCRuntimeRef/Reference/reference.html">BOOL</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_c_p_t_utilities_8h.html#a7e3a75ad957c6a27143640ecf12de2d9">CPTDecimalGreaterThan</a> (<a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a> leftOperand, <a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a> rightOperand)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Checks to see if one <a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a> is greater than another.  <a href="#a7e3a75ad957c6a27143640ecf12de2d9"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/ObjCRuntimeRef/Reference/reference.html">BOOL</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_c_p_t_utilities_8h.html#af4e45c66f5240be4a5c9008b9843ce28">CPTDecimalGreaterThanOrEqualTo</a> (<a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a> leftOperand, <a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a> rightOperand)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Checks to see if one <a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a> is greater than or equal to another.  <a href="#af4e45c66f5240be4a5c9008b9843ce28"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/ObjCRuntimeRef/Reference/reference.html">BOOL</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_c_p_t_utilities_8h.html#a4cbfa11dc195d68b2676ac45b50977d8">CPTDecimalLessThan</a> (<a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a> leftOperand, <a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a> rightOperand)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Checks to see if one <a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a> is less than another.  <a href="#a4cbfa11dc195d68b2676ac45b50977d8"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/ObjCRuntimeRef/Reference/reference.html">BOOL</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_c_p_t_utilities_8h.html#ad6d13568d3edab7885529a7aeaff9b8f">CPTDecimalLessThanOrEqualTo</a> (<a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a> leftOperand, <a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a> rightOperand)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Checks to see if one <a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a> is less than or equal to another.  <a href="#ad6d13568d3edab7885529a7aeaff9b8f"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/ObjCRuntimeRef/Reference/reference.html">BOOL</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_c_p_t_utilities_8h.html#aa0dcfeef1561c28740019f72f9405526">CPTDecimalEquals</a> (<a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a> leftOperand, <a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a> rightOperand)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Checks to see if one <a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a> is equal to another.  <a href="#aa0dcfeef1561c28740019f72f9405526"></a><br/></td></tr>
<tr><td colspan="2"><div class="groupHeader">NSDecimal utilities</div></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_c_p_t_utilities_8h.html#a60c0cc1078e99634848563d9e69f4efc">CPTDecimalNaN</a> (void)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates and returns an <a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a> struct that represents the value "not a number".  <a href="#a60c0cc1078e99634848563d9e69f4efc"></a><br/></td></tr>
<tr><td colspan="2"><div class="groupHeader">Ranges</div></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSRange</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_c_p_t_utilities_8h.html#a794f89cd14d4cfb21bf8c050b2df8237">CPTExpandedRange</a> (<a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSRange</a> range, <a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSInteger</a> expandBy)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Expands an <a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSRange</a> by the given amount.  <a href="#a794f89cd14d4cfb21bf8c050b2df8237"></a><br/></td></tr>
<tr><td colspan="2"><div class="groupHeader">Coordinates</div></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="_c_p_t_definitions_8h.html#a10709b6abd0a9ee1769345ef51b2fcd7">CPTCoordinate</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_c_p_t_utilities_8h.html#afeb1ea1e2d6486b67ef47c4bf8e3661f">CPTOrthogonalCoordinate</a> (<a class="el" href="_c_p_t_definitions_8h.html#a10709b6abd0a9ee1769345ef51b2fcd7">CPTCoordinate</a> coord)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Determines the CPTCoordinate that is orthogonal to the one provided.  <a href="#afeb1ea1e2d6486b67ef47c4bf8e3661f"></a><br/></td></tr>
<tr><td colspan="2"><div class="groupHeader">Gradient colors</div></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="_c_p_t_definitions_8h.html#a722329b2597462efab5dc7fc7057b27c">CPTRGBAColor</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_c_p_t_utilities_8h.html#a344d9cc450b8f69583b387bc0c5d29cd">CPTRGBAColorFromCGColor</a> (<a class="elRef" href="http://developer.apple.com/iphone/library/documentation/GraphicsImaging/Reference/CGColor/Reference/reference.html#//apple_ref/doc/c_ref/CGColorRef.html">CGColorRef</a> color)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Extracts the color information from a <a class="elRef" href="http://developer.apple.com/iphone/library/documentation/GraphicsImaging/Reference/CGColor/Reference/reference.html#//apple_ref/doc/c_ref/CGColorRef.html">CGColorRef</a> and returns it as a CPTRGBAColor.  <a href="#a344d9cc450b8f69583b387bc0c5d29cd"></a><br/></td></tr>
<tr><td colspan="2"><div class="groupHeader">Quartz Pixel-Alignment Functions</div></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="http://developer.apple.com/iPhone/library/documentation/GraphicsImaging/Reference/CGGeometry/Reference/reference.html#//apple_ref/doc/c_ref/CGPoint.html">CGPoint</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_c_p_t_utilities_8h.html#a0c8d770c2fa665ed305989b481333896">CPTAlignPointToUserSpace</a> (<a class="elRef" href="http://developer.apple.com/iphone/library/documentation/GraphicsImaging/Reference/CGContext/Reference/reference.html#//apple_ref/doc/c_ref/CGContextRef.html">CGContextRef</a> context, <a class="elRef" href="http://developer.apple.com/iPhone/library/documentation/GraphicsImaging/Reference/CGGeometry/Reference/reference.html#//apple_ref/doc/c_ref/CGPoint.html">CGPoint</a> p)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Aligns a point in user space to integral coordinates in device space.  <a href="#a0c8d770c2fa665ed305989b481333896"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="http://developer.apple.com/iPhone/library/documentation/GraphicsImaging/Reference/CGGeometry/Reference/reference.html#//apple_ref/doc/c_ref/CGSize.html">CGSize</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_c_p_t_utilities_8h.html#a6d82f91117b62e8d17f0b289a2139a8a">CPTAlignSizeToUserSpace</a> (<a class="elRef" href="http://developer.apple.com/iphone/library/documentation/GraphicsImaging/Reference/CGContext/Reference/reference.html#//apple_ref/doc/c_ref/CGContextRef.html">CGContextRef</a> context, <a class="elRef" href="http://developer.apple.com/iPhone/library/documentation/GraphicsImaging/Reference/CGGeometry/Reference/reference.html#//apple_ref/doc/c_ref/CGSize.html">CGSize</a> s)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Adjusts a size in user space to integral dimensions in device space.  <a href="#a6d82f91117b62e8d17f0b289a2139a8a"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="http://developer.apple.com/iPhone/library/documentation/GraphicsImaging/Reference/CGGeometry/Reference/reference.html#//apple_ref/doc/c_ref/CGRect.html">CGRect</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_c_p_t_utilities_8h.html#a030acdcbf883d6a16e03258c48c8be19">CPTAlignRectToUserSpace</a> (<a class="elRef" href="http://developer.apple.com/iphone/library/documentation/GraphicsImaging/Reference/CGContext/Reference/reference.html#//apple_ref/doc/c_ref/CGContextRef.html">CGContextRef</a> context, <a class="elRef" href="http://developer.apple.com/iPhone/library/documentation/GraphicsImaging/Reference/CGGeometry/Reference/reference.html#//apple_ref/doc/c_ref/CGRect.html">CGRect</a> r)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Aligns a rectangle in user space to integral coordinates in device space.  <a href="#a030acdcbf883d6a16e03258c48c8be19"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="http://developer.apple.com/iPhone/library/documentation/GraphicsImaging/Reference/CGGeometry/Reference/reference.html#//apple_ref/doc/c_ref/CGPoint.html">CGPoint</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_c_p_t_utilities_8h.html#ac3d19ecc95afb616f52344ad45d8c3b3">CPTAlignIntegralPointToUserSpace</a> (<a class="elRef" href="http://developer.apple.com/iphone/library/documentation/GraphicsImaging/Reference/CGContext/Reference/reference.html#//apple_ref/doc/c_ref/CGContextRef.html">CGContextRef</a> context, <a class="elRef" href="http://developer.apple.com/iPhone/library/documentation/GraphicsImaging/Reference/CGGeometry/Reference/reference.html#//apple_ref/doc/c_ref/CGPoint.html">CGPoint</a> p)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Aligns a point in user space between integral coordinates in device space.  <a href="#ac3d19ecc95afb616f52344ad45d8c3b3"></a><br/></td></tr>
<tr><td colspan="2"><div class="groupHeader">String formatting for Core Graphics structs</div></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Classes/NSString_Class/Reference/NSString.html">NSString</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_c_p_t_utilities_8h.html#aedaaa162648bc0dc9f186998fdd67dbb">CPTStringFromPoint</a> (<a class="elRef" href="http://developer.apple.com/iPhone/library/documentation/GraphicsImaging/Reference/CGGeometry/Reference/reference.html#//apple_ref/doc/c_ref/CGPoint.html">CGPoint</a> p)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates a string representation of the given point.  <a href="#aedaaa162648bc0dc9f186998fdd67dbb"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Classes/NSString_Class/Reference/NSString.html">NSString</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_c_p_t_utilities_8h.html#adcdd93e329eee9eba136f27ddc2c735f">CPTStringFromSize</a> (<a class="elRef" href="http://developer.apple.com/iPhone/library/documentation/GraphicsImaging/Reference/CGGeometry/Reference/reference.html#//apple_ref/doc/c_ref/CGSize.html">CGSize</a> s)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates a string representation of the given size.  <a href="#adcdd93e329eee9eba136f27ddc2c735f"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Classes/NSString_Class/Reference/NSString.html">NSString</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_c_p_t_utilities_8h.html#a4fe15dc4f56e08d4cb0e6e0480f7a72d">CPTStringFromRect</a> (<a class="elRef" href="http://developer.apple.com/iPhone/library/documentation/GraphicsImaging/Reference/CGGeometry/Reference/reference.html#//apple_ref/doc/c_ref/CGRect.html">CGRect</a> r)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates a string representation of the given rectangle.  <a href="#a4fe15dc4f56e08d4cb0e6e0480f7a72d"></a><br/></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"></div><hr/><h2>Function Documentation</h2>
<a class="anchor" id="ac3d19ecc95afb616f52344ad45d8c3b3"></a><!-- doxytag: member="CPTUtilities.h::CPTAlignIntegralPointToUserSpace" ref="ac3d19ecc95afb616f52344ad45d8c3b3" args="(CGContextRef context, CGPoint p)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" href="http://developer.apple.com/iPhone/library/documentation/GraphicsImaging/Reference/CGGeometry/Reference/reference.html#//apple_ref/doc/c_ref/CGPoint.html">CGPoint</a> <a class="el" href="_c_p_t_utilities_8h.html#ac3d19ecc95afb616f52344ad45d8c3b3">CPTAlignIntegralPointToUserSpace</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="elRef" href="http://developer.apple.com/iphone/library/documentation/GraphicsImaging/Reference/CGContext/Reference/reference.html#//apple_ref/doc/c_ref/CGContextRef.html">CGContextRef</a>&#160;</td>
          <td class="paramname"><em>context</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="elRef" href="http://developer.apple.com/iPhone/library/documentation/GraphicsImaging/Reference/CGGeometry/Reference/reference.html#//apple_ref/doc/c_ref/CGPoint.html">CGPoint</a>&#160;</td>
          <td class="paramname"><em>p</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Aligns a point in user space between integral coordinates in device space. </p>
<p>Ensures that the x and y coordinates are between pixels in device space.</p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">context</td><td>The graphics context. </td></tr>
    <tr><td class="paramname">p</td><td>The point in user space. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>The device aligned point in user space. </dd></dl>

</div>
</div>
<a class="anchor" id="a0c8d770c2fa665ed305989b481333896"></a><!-- doxytag: member="CPTUtilities.h::CPTAlignPointToUserSpace" ref="a0c8d770c2fa665ed305989b481333896" args="(CGContextRef context, CGPoint p)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" href="http://developer.apple.com/iPhone/library/documentation/GraphicsImaging/Reference/CGGeometry/Reference/reference.html#//apple_ref/doc/c_ref/CGPoint.html">CGPoint</a> <a class="el" href="_c_p_t_utilities_8h.html#a0c8d770c2fa665ed305989b481333896">CPTAlignPointToUserSpace</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="elRef" href="http://developer.apple.com/iphone/library/documentation/GraphicsImaging/Reference/CGContext/Reference/reference.html#//apple_ref/doc/c_ref/CGContextRef.html">CGContextRef</a>&#160;</td>
          <td class="paramname"><em>context</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="elRef" href="http://developer.apple.com/iPhone/library/documentation/GraphicsImaging/Reference/CGGeometry/Reference/reference.html#//apple_ref/doc/c_ref/CGPoint.html">CGPoint</a>&#160;</td>
          <td class="paramname"><em>p</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Aligns a point in user space to integral coordinates in device space. </p>
<p>Ensures that the x and y coordinates are at a pixel corner in device space. Drawn from <em>Programming with Quartz</em> by D. Gelphman, B. Laden.</p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">context</td><td>The graphics context. </td></tr>
    <tr><td class="paramname">p</td><td>The point in user space. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>The device aligned point in user space. </dd></dl>

</div>
</div>
<a class="anchor" id="a030acdcbf883d6a16e03258c48c8be19"></a><!-- doxytag: member="CPTUtilities.h::CPTAlignRectToUserSpace" ref="a030acdcbf883d6a16e03258c48c8be19" args="(CGContextRef context, CGRect r)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" href="http://developer.apple.com/iPhone/library/documentation/GraphicsImaging/Reference/CGGeometry/Reference/reference.html#//apple_ref/doc/c_ref/CGRect.html">CGRect</a> <a class="el" href="_c_p_t_utilities_8h.html#a030acdcbf883d6a16e03258c48c8be19">CPTAlignRectToUserSpace</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="elRef" href="http://developer.apple.com/iphone/library/documentation/GraphicsImaging/Reference/CGContext/Reference/reference.html#//apple_ref/doc/c_ref/CGContextRef.html">CGContextRef</a>&#160;</td>
          <td class="paramname"><em>context</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="elRef" href="http://developer.apple.com/iPhone/library/documentation/GraphicsImaging/Reference/CGGeometry/Reference/reference.html#//apple_ref/doc/c_ref/CGRect.html">CGRect</a>&#160;</td>
          <td class="paramname"><em>r</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Aligns a rectangle in user space to integral coordinates in device space. </p>
<p>Ensures that the x and y coordinates are at a pixel corner in device space and the width and height are an integer number of device pixels. Drawn from <em>Programming with Quartz</em> by D. Gelphman, B. Laden.</p>
<dl class="note"><dt><b>Note:</b></dt><dd>This function produces a width and height that is less than or equal to the original width. </dd></dl>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">context</td><td>The graphics context. </td></tr>
    <tr><td class="paramname">r</td><td>The rectangle in user space. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>The device aligned rectangle in user space. </dd></dl>

</div>
</div>
<a class="anchor" id="a6d82f91117b62e8d17f0b289a2139a8a"></a><!-- doxytag: member="CPTUtilities.h::CPTAlignSizeToUserSpace" ref="a6d82f91117b62e8d17f0b289a2139a8a" args="(CGContextRef context, CGSize s)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" href="http://developer.apple.com/iPhone/library/documentation/GraphicsImaging/Reference/CGGeometry/Reference/reference.html#//apple_ref/doc/c_ref/CGSize.html">CGSize</a> <a class="el" href="_c_p_t_utilities_8h.html#a6d82f91117b62e8d17f0b289a2139a8a">CPTAlignSizeToUserSpace</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="elRef" href="http://developer.apple.com/iphone/library/documentation/GraphicsImaging/Reference/CGContext/Reference/reference.html#//apple_ref/doc/c_ref/CGContextRef.html">CGContextRef</a>&#160;</td>
          <td class="paramname"><em>context</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="elRef" href="http://developer.apple.com/iPhone/library/documentation/GraphicsImaging/Reference/CGGeometry/Reference/reference.html#//apple_ref/doc/c_ref/CGSize.html">CGSize</a>&#160;</td>
          <td class="paramname"><em>s</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Adjusts a size in user space to integral dimensions in device space. </p>
<p>Ensures that the width and height are an integer number of device pixels. Drawn from <em>Programming with Quartz</em> by D. Gelphman, B. Laden.</p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">context</td><td>The graphics context. </td></tr>
    <tr><td class="paramname">s</td><td>The size in user space. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>The device aligned size in user space. </dd></dl>

</div>
</div>
<a class="anchor" id="a985b63fe956e796f53954a568487b522"></a><!-- doxytag: member="CPTUtilities.h::CPTDecimalAdd" ref="a985b63fe956e796f53954a568487b522" args="(NSDecimal leftOperand, NSDecimal rightOperand)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a> <a class="el" href="_c_p_t_utilities_8h.html#a985b63fe956e796f53954a568487b522">CPTDecimalAdd</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a>&#160;</td>
          <td class="paramname"><em>leftOperand</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a>&#160;</td>
          <td class="paramname"><em>rightOperand</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Adds two NSDecimals together. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">leftOperand</td><td>The left-hand side of the addition operation. </td></tr>
    <tr><td class="paramname">rightOperand</td><td>The right-hand side of the addition operation. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>The result of the addition. </dd></dl>

</div>
</div>
<a class="anchor" id="a4cbe3c7b322be2c7fdbe445c1af9b87f"></a><!-- doxytag: member="CPTUtilities.h::CPTDecimalCGFloatValue" ref="a4cbe3c7b322be2c7fdbe445c1af9b87f" args="(NSDecimal decimalNumber)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">CGFloat <a class="el" href="_c_p_t_utilities_8h.html#a4cbe3c7b322be2c7fdbe445c1af9b87f">CPTDecimalCGFloatValue</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a>&#160;</td>
          <td class="paramname"><em>decimalNumber</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Converts an <a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a> value to a CGFloat. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">decimalNumber</td><td>The <a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a> value. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>The converted value. </dd></dl>

</div>
</div>
<a class="anchor" id="af1b1773a3749df0597fcdfaca9a93718"></a><!-- doxytag: member="CPTUtilities.h::CPTDecimalCharValue" ref="af1b1773a3749df0597fcdfaca9a93718" args="(NSDecimal decimalNumber)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int8_t <a class="el" href="_c_p_t_utilities_8h.html#af1b1773a3749df0597fcdfaca9a93718">CPTDecimalCharValue</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a>&#160;</td>
          <td class="paramname"><em>decimalNumber</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Converts an <a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a> value to an 8-bit integer. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">decimalNumber</td><td>The <a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a> value. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>The converted value. </dd></dl>

</div>
</div>
<a class="anchor" id="a59d907ee85b5444b8d8f1582dbe130f9"></a><!-- doxytag: member="CPTUtilities.h::CPTDecimalDivide" ref="a59d907ee85b5444b8d8f1582dbe130f9" args="(NSDecimal numerator, NSDecimal denominator)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a> <a class="el" href="_c_p_t_utilities_8h.html#a59d907ee85b5444b8d8f1582dbe130f9">CPTDecimalDivide</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a>&#160;</td>
          <td class="paramname"><em>numerator</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a>&#160;</td>
          <td class="paramname"><em>denominator</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Divides one <a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a> by another. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">numerator</td><td>The numerator of the multiplication operation. </td></tr>
    <tr><td class="paramname">denominator</td><td>The denominator of the multiplication operation. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>The result of the division. </dd></dl>

</div>
</div>
<a class="anchor" id="a5ed2ce247bc38d2b436ddb5db5f956a0"></a><!-- doxytag: member="CPTUtilities.h::CPTDecimalDoubleValue" ref="a5ed2ce247bc38d2b436ddb5db5f956a0" args="(NSDecimal decimalNumber)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double <a class="el" href="_c_p_t_utilities_8h.html#a5ed2ce247bc38d2b436ddb5db5f956a0">CPTDecimalDoubleValue</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a>&#160;</td>
          <td class="paramname"><em>decimalNumber</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Converts an <a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a> value to a double. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">decimalNumber</td><td>The <a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a> value. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>The converted value. </dd></dl>

</div>
</div>
<a class="anchor" id="aa0dcfeef1561c28740019f72f9405526"></a><!-- doxytag: member="CPTUtilities.h::CPTDecimalEquals" ref="aa0dcfeef1561c28740019f72f9405526" args="(NSDecimal leftOperand, NSDecimal rightOperand)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/ObjCRuntimeRef/Reference/reference.html">BOOL</a> <a class="el" href="_c_p_t_utilities_8h.html#aa0dcfeef1561c28740019f72f9405526">CPTDecimalEquals</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a>&#160;</td>
          <td class="paramname"><em>leftOperand</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a>&#160;</td>
          <td class="paramname"><em>rightOperand</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Checks to see if one <a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a> is equal to another. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">leftOperand</td><td>The left side of the comparison. </td></tr>
    <tr><td class="paramname">rightOperand</td><td>The right side of the comparison. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>YES if the left operand is equal to the right, NO otherwise. </dd></dl>

</div>
</div>
<a class="anchor" id="ae975df8171015ce0f466726e71f26f0d"></a><!-- doxytag: member="CPTUtilities.h::CPTDecimalFloatValue" ref="ae975df8171015ce0f466726e71f26f0d" args="(NSDecimal decimalNumber)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">float <a class="el" href="_c_p_t_utilities_8h.html#ae975df8171015ce0f466726e71f26f0d">CPTDecimalFloatValue</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a>&#160;</td>
          <td class="paramname"><em>decimalNumber</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Converts an <a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a> value to a float. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">decimalNumber</td><td>The <a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a> value. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>The converted value. </dd></dl>

</div>
</div>
<a class="anchor" id="ad1a6f7e9240714fecd7ff35661cd1dc6"></a><!-- doxytag: member="CPTUtilities.h::CPTDecimalFromCGFloat" ref="ad1a6f7e9240714fecd7ff35661cd1dc6" args="(CGFloat f)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a> <a class="el" href="_c_p_t_utilities_8h.html#ad1a6f7e9240714fecd7ff35661cd1dc6">CPTDecimalFromCGFloat</a> </td>
          <td>(</td>
          <td class="paramtype">CGFloat&#160;</td>
          <td class="paramname"><em>f</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Converts a CGFloat value to an <a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a>. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">f</td><td>The CGFloat value. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>The converted value. </dd></dl>

</div>
</div>
<a class="anchor" id="a81353fb234909d9b7d491210b904f6f4"></a><!-- doxytag: member="CPTUtilities.h::CPTDecimalFromChar" ref="a81353fb234909d9b7d491210b904f6f4" args="(int8_t i)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a> <a class="el" href="_c_p_t_utilities_8h.html#a81353fb234909d9b7d491210b904f6f4">CPTDecimalFromChar</a> </td>
          <td>(</td>
          <td class="paramtype">int8_t&#160;</td>
          <td class="paramname"><em>i</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Converts an 8-bit integer value to an <a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a>. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">i</td><td>The integer value. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>The converted value. </dd></dl>

</div>
</div>
<a class="anchor" id="a276093946edc6466a5886b116860c2ac"></a><!-- doxytag: member="CPTUtilities.h::CPTDecimalFromDouble" ref="a276093946edc6466a5886b116860c2ac" args="(double d)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a> <a class="el" href="_c_p_t_utilities_8h.html#a276093946edc6466a5886b116860c2ac">CPTDecimalFromDouble</a> </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>d</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Converts a double value to an <a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a>. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">d</td><td>The double value. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>The converted value. </dd></dl>

</div>
</div>
<a class="anchor" id="a0f6ee8401b3f93ded7b132adbda639e7"></a><!-- doxytag: member="CPTUtilities.h::CPTDecimalFromFloat" ref="a0f6ee8401b3f93ded7b132adbda639e7" args="(float f)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a> <a class="el" href="_c_p_t_utilities_8h.html#a0f6ee8401b3f93ded7b132adbda639e7">CPTDecimalFromFloat</a> </td>
          <td>(</td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>f</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Converts a float value to an <a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a>. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">f</td><td>The float value. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>The converted value. </dd></dl>

</div>
</div>
<a class="anchor" id="a1e357f0a18b4d94f218b8a8afeeb3162"></a><!-- doxytag: member="CPTUtilities.h::CPTDecimalFromInt" ref="a1e357f0a18b4d94f218b8a8afeeb3162" args="(int i)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a> <a class="el" href="_c_p_t_utilities_8h.html#a1e357f0a18b4d94f218b8a8afeeb3162">CPTDecimalFromInt</a> </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>i</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Converts an int value to an <a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a>. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">i</td><td>The int value. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>The converted value. </dd></dl>

</div>
</div>
<a class="anchor" id="ac76a8b7404db9f17124e10f3c2d2c715"></a><!-- doxytag: member="CPTUtilities.h::CPTDecimalFromInteger" ref="ac76a8b7404db9f17124e10f3c2d2c715" args="(NSInteger i)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a> <a class="el" href="_c_p_t_utilities_8h.html#ac76a8b7404db9f17124e10f3c2d2c715">CPTDecimalFromInteger</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSInteger</a>&#160;</td>
          <td class="paramname"><em>i</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Converts an <a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSInteger</a> value to an <a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a>. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">i</td><td>The <a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSInteger</a> value. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>The converted value. </dd></dl>

</div>
</div>
<a class="anchor" id="a7c08754252c04cf22bb375793048e137"></a><!-- doxytag: member="CPTUtilities.h::CPTDecimalFromLong" ref="a7c08754252c04cf22bb375793048e137" args="(int32_t i)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a> <a class="el" href="_c_p_t_utilities_8h.html#a7c08754252c04cf22bb375793048e137">CPTDecimalFromLong</a> </td>
          <td>(</td>
          <td class="paramtype">int32_t&#160;</td>
          <td class="paramname"><em>i</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Converts a 32-bit integer value to an <a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a>. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">i</td><td>The integer value. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>The converted value. </dd></dl>

</div>
</div>
<a class="anchor" id="ab7d7b876754072c9c41bbbf6890a901a"></a><!-- doxytag: member="CPTUtilities.h::CPTDecimalFromLongLong" ref="ab7d7b876754072c9c41bbbf6890a901a" args="(int64_t i)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a> <a class="el" href="_c_p_t_utilities_8h.html#ab7d7b876754072c9c41bbbf6890a901a">CPTDecimalFromLongLong</a> </td>
          <td>(</td>
          <td class="paramtype">int64_t&#160;</td>
          <td class="paramname"><em>i</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Converts a 64-bit integer value to an <a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a>. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">i</td><td>The integer value. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>The converted value. </dd></dl>

</div>
</div>
<a class="anchor" id="a18f20748526508d138192c75f490ccdd"></a><!-- doxytag: member="CPTUtilities.h::CPTDecimalFromShort" ref="a18f20748526508d138192c75f490ccdd" args="(int16_t i)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a> <a class="el" href="_c_p_t_utilities_8h.html#a18f20748526508d138192c75f490ccdd">CPTDecimalFromShort</a> </td>
          <td>(</td>
          <td class="paramtype">int16_t&#160;</td>
          <td class="paramname"><em>i</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Converts a 16-bit integer value to an <a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a>. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">i</td><td>The integer value. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>The converted value. </dd></dl>

</div>
</div>
<a class="anchor" id="ae35782b504e6aa284cc322a40bb5a2fd"></a><!-- doxytag: member="CPTUtilities.h::CPTDecimalFromString" ref="ae35782b504e6aa284cc322a40bb5a2fd" args="(NSString *stringRepresentation)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a> <a class="el" href="_c_p_t_utilities_8h.html#ae35782b504e6aa284cc322a40bb5a2fd">CPTDecimalFromString</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Classes/NSString_Class/Reference/NSString.html">NSString</a> *&#160;</td>
          <td class="paramname"><em>stringRepresentation</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Parses a string and extracts the numeric value as an <a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a>. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">stringRepresentation</td><td>The string value. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>The numeric value extracted from the string. </dd></dl>

</div>
</div>
<a class="anchor" id="a059a5020dcbf6d62ce772002e29a8e18"></a><!-- doxytag: member="CPTUtilities.h::CPTDecimalFromUnsignedChar" ref="a059a5020dcbf6d62ce772002e29a8e18" args="(uint8_t i)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a> <a class="el" href="_c_p_t_utilities_8h.html#a059a5020dcbf6d62ce772002e29a8e18">CPTDecimalFromUnsignedChar</a> </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>i</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Converts an unsigned 8-bit integer value to an <a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a>. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">i</td><td>The unsigned integer value. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>The converted value. </dd></dl>

</div>
</div>
<a class="anchor" id="adb5c145464ebbc87bef7b33f2431fdc3"></a><!-- doxytag: member="CPTUtilities.h::CPTDecimalFromUnsignedInt" ref="adb5c145464ebbc87bef7b33f2431fdc3" args="(unsigned int i)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a> <a class="el" href="_c_p_t_utilities_8h.html#adb5c145464ebbc87bef7b33f2431fdc3">CPTDecimalFromUnsignedInt</a> </td>
          <td>(</td>
          <td class="paramtype">unsigned int&#160;</td>
          <td class="paramname"><em>i</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Converts an unsigned int value to an <a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a>. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">i</td><td>The unsigned int value. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>The converted value. </dd></dl>

</div>
</div>
<a class="anchor" id="a1970a76e2fccbfcf42c75b6f919220f0"></a><!-- doxytag: member="CPTUtilities.h::CPTDecimalFromUnsignedInteger" ref="a1970a76e2fccbfcf42c75b6f919220f0" args="(NSUInteger i)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a> <a class="el" href="_c_p_t_utilities_8h.html#a1970a76e2fccbfcf42c75b6f919220f0">CPTDecimalFromUnsignedInteger</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSUInteger</a>&#160;</td>
          <td class="paramname"><em>i</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Converts an <a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSUInteger</a> value to an <a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a>. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">i</td><td>The <a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSUInteger</a> value. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>The converted value. </dd></dl>

</div>
</div>
<a class="anchor" id="a9e0de85cd00d4e874b64037f4c6ca900"></a><!-- doxytag: member="CPTUtilities.h::CPTDecimalFromUnsignedLong" ref="a9e0de85cd00d4e874b64037f4c6ca900" args="(uint32_t i)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a> <a class="el" href="_c_p_t_utilities_8h.html#a9e0de85cd00d4e874b64037f4c6ca900">CPTDecimalFromUnsignedLong</a> </td>
          <td>(</td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>i</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Converts an unsigned 32-bit integer value to an <a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a>. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">i</td><td>The unsigned integer value. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>The converted value. </dd></dl>

</div>
</div>
<a class="anchor" id="aef8f88dc07c2d46150198b4d13618308"></a><!-- doxytag: member="CPTUtilities.h::CPTDecimalFromUnsignedLongLong" ref="aef8f88dc07c2d46150198b4d13618308" args="(uint64_t i)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a> <a class="el" href="_c_p_t_utilities_8h.html#aef8f88dc07c2d46150198b4d13618308">CPTDecimalFromUnsignedLongLong</a> </td>
          <td>(</td>
          <td class="paramtype">uint64_t&#160;</td>
          <td class="paramname"><em>i</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Converts an unsigned 64-bit integer value to an <a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a>. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">i</td><td>The unsigned integer value. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>The converted value. </dd></dl>

</div>
</div>
<a class="anchor" id="a2964d83bf11ac682a07702c466d7d147"></a><!-- doxytag: member="CPTUtilities.h::CPTDecimalFromUnsignedShort" ref="a2964d83bf11ac682a07702c466d7d147" args="(uint16_t i)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a> <a class="el" href="_c_p_t_utilities_8h.html#a2964d83bf11ac682a07702c466d7d147">CPTDecimalFromUnsignedShort</a> </td>
          <td>(</td>
          <td class="paramtype">uint16_t&#160;</td>
          <td class="paramname"><em>i</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Converts an unsigned 16-bit integer value to an <a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a>. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">i</td><td>The unsigned integer value. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>The converted value. </dd></dl>

</div>
</div>
<a class="anchor" id="a7e3a75ad957c6a27143640ecf12de2d9"></a><!-- doxytag: member="CPTUtilities.h::CPTDecimalGreaterThan" ref="a7e3a75ad957c6a27143640ecf12de2d9" args="(NSDecimal leftOperand, NSDecimal rightOperand)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/ObjCRuntimeRef/Reference/reference.html">BOOL</a> <a class="el" href="_c_p_t_utilities_8h.html#a7e3a75ad957c6a27143640ecf12de2d9">CPTDecimalGreaterThan</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a>&#160;</td>
          <td class="paramname"><em>leftOperand</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a>&#160;</td>
          <td class="paramname"><em>rightOperand</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Checks to see if one <a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a> is greater than another. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">leftOperand</td><td>The left side of the comparison. </td></tr>
    <tr><td class="paramname">rightOperand</td><td>The right side of the comparison. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>YES if the left operand is greater than the right, NO otherwise. </dd></dl>

</div>
</div>
<a class="anchor" id="af4e45c66f5240be4a5c9008b9843ce28"></a><!-- doxytag: member="CPTUtilities.h::CPTDecimalGreaterThanOrEqualTo" ref="af4e45c66f5240be4a5c9008b9843ce28" args="(NSDecimal leftOperand, NSDecimal rightOperand)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/ObjCRuntimeRef/Reference/reference.html">BOOL</a> <a class="el" href="_c_p_t_utilities_8h.html#af4e45c66f5240be4a5c9008b9843ce28">CPTDecimalGreaterThanOrEqualTo</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a>&#160;</td>
          <td class="paramname"><em>leftOperand</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a>&#160;</td>
          <td class="paramname"><em>rightOperand</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Checks to see if one <a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a> is greater than or equal to another. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">leftOperand</td><td>The left side of the comparison. </td></tr>
    <tr><td class="paramname">rightOperand</td><td>The right side of the comparison. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>YES if the left operand is greater than or equal to the right, NO otherwise. </dd></dl>

</div>
</div>
<a class="anchor" id="a72d99fc7ddcdc1006e5e49108d0cd809"></a><!-- doxytag: member="CPTUtilities.h::CPTDecimalIntegerValue" ref="a72d99fc7ddcdc1006e5e49108d0cd809" args="(NSDecimal decimalNumber)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSInteger</a> <a class="el" href="_c_p_t_utilities_8h.html#a72d99fc7ddcdc1006e5e49108d0cd809">CPTDecimalIntegerValue</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a>&#160;</td>
          <td class="paramname"><em>decimalNumber</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Converts an <a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a> value to an <a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSInteger</a>. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">decimalNumber</td><td>The <a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a> value. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>The converted value. </dd></dl>

</div>
</div>
<a class="anchor" id="a9df871890b9cedb5cae4787775e17252"></a><!-- doxytag: member="CPTUtilities.h::CPTDecimalIntValue" ref="a9df871890b9cedb5cae4787775e17252" args="(NSDecimal decimalNumber)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="_c_p_t_utilities_8h.html#a9df871890b9cedb5cae4787775e17252">CPTDecimalIntValue</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a>&#160;</td>
          <td class="paramname"><em>decimalNumber</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Converts an <a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a> value to an int. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">decimalNumber</td><td>The <a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a> value. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>The converted value. </dd></dl>

</div>
</div>
<a class="anchor" id="a4cbfa11dc195d68b2676ac45b50977d8"></a><!-- doxytag: member="CPTUtilities.h::CPTDecimalLessThan" ref="a4cbfa11dc195d68b2676ac45b50977d8" args="(NSDecimal leftOperand, NSDecimal rightOperand)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/ObjCRuntimeRef/Reference/reference.html">BOOL</a> <a class="el" href="_c_p_t_utilities_8h.html#a4cbfa11dc195d68b2676ac45b50977d8">CPTDecimalLessThan</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a>&#160;</td>
          <td class="paramname"><em>leftOperand</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a>&#160;</td>
          <td class="paramname"><em>rightOperand</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Checks to see if one <a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a> is less than another. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">leftOperand</td><td>The left side of the comparison. </td></tr>
    <tr><td class="paramname">rightOperand</td><td>The right side of the comparison. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>YES if the left operand is less than the right, NO otherwise. </dd></dl>

</div>
</div>
<a class="anchor" id="ad6d13568d3edab7885529a7aeaff9b8f"></a><!-- doxytag: member="CPTUtilities.h::CPTDecimalLessThanOrEqualTo" ref="ad6d13568d3edab7885529a7aeaff9b8f" args="(NSDecimal leftOperand, NSDecimal rightOperand)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/ObjCRuntimeRef/Reference/reference.html">BOOL</a> <a class="el" href="_c_p_t_utilities_8h.html#ad6d13568d3edab7885529a7aeaff9b8f">CPTDecimalLessThanOrEqualTo</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a>&#160;</td>
          <td class="paramname"><em>leftOperand</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a>&#160;</td>
          <td class="paramname"><em>rightOperand</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Checks to see if one <a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a> is less than or equal to another. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">leftOperand</td><td>The left side of the comparison. </td></tr>
    <tr><td class="paramname">rightOperand</td><td>The right side of the comparison. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>YES if the left operand is less than or equal to the right, NO otherwise. </dd></dl>

</div>
</div>
<a class="anchor" id="a63cff45777b63382e57cb735018a9a38"></a><!-- doxytag: member="CPTUtilities.h::CPTDecimalLongLongValue" ref="a63cff45777b63382e57cb735018a9a38" args="(NSDecimal decimalNumber)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int64_t <a class="el" href="_c_p_t_utilities_8h.html#a63cff45777b63382e57cb735018a9a38">CPTDecimalLongLongValue</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a>&#160;</td>
          <td class="paramname"><em>decimalNumber</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Converts an <a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a> value to a 64-bit integer. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">decimalNumber</td><td>The <a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a> value. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>The converted value. </dd></dl>

</div>
</div>
<a class="anchor" id="aa77e18a004fab76d1bffa9cb602977b3"></a><!-- doxytag: member="CPTUtilities.h::CPTDecimalLongValue" ref="aa77e18a004fab76d1bffa9cb602977b3" args="(NSDecimal decimalNumber)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int32_t <a class="el" href="_c_p_t_utilities_8h.html#aa77e18a004fab76d1bffa9cb602977b3">CPTDecimalLongValue</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a>&#160;</td>
          <td class="paramname"><em>decimalNumber</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Converts an <a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a> value to a 32-bit integer. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">decimalNumber</td><td>The <a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a> value. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>The converted value. </dd></dl>

</div>
</div>
<a class="anchor" id="a66a98d0312337dd95a4f67356d773631"></a><!-- doxytag: member="CPTUtilities.h::CPTDecimalMultiply" ref="a66a98d0312337dd95a4f67356d773631" args="(NSDecimal leftOperand, NSDecimal rightOperand)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a> <a class="el" href="_c_p_t_utilities_8h.html#a66a98d0312337dd95a4f67356d773631">CPTDecimalMultiply</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a>&#160;</td>
          <td class="paramname"><em>leftOperand</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a>&#160;</td>
          <td class="paramname"><em>rightOperand</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Multiplies two NSDecimals together. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">leftOperand</td><td>The left-hand side of the multiplication operation. </td></tr>
    <tr><td class="paramname">rightOperand</td><td>The right-hand side of the multiplication operation. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>The result of the multiplication. </dd></dl>

</div>
</div>
<a class="anchor" id="a60c0cc1078e99634848563d9e69f4efc"></a><!-- doxytag: member="CPTUtilities.h::CPTDecimalNaN" ref="a60c0cc1078e99634848563d9e69f4efc" args="(void)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a> <a class="el" href="_c_p_t_utilities_8h.html#a60c0cc1078e99634848563d9e69f4efc">CPTDecimalNaN</a> </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Creates and returns an <a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a> struct that represents the value "not a number". </p>
<p>Calling <code>NSDecimalIsNotANumber()</code> on this value will return <code>YES</code>.</p>
<dl class="return"><dt><b>Returns:</b></dt><dd>An <a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a> struct that represents the value "not a number". </dd></dl>

</div>
</div>
<a class="anchor" id="af541b78435bd6954522ea69d59e0549b"></a><!-- doxytag: member="CPTUtilities.h::CPTDecimalShortValue" ref="af541b78435bd6954522ea69d59e0549b" args="(NSDecimal decimalNumber)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int16_t <a class="el" href="_c_p_t_utilities_8h.html#af541b78435bd6954522ea69d59e0549b">CPTDecimalShortValue</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a>&#160;</td>
          <td class="paramname"><em>decimalNumber</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Converts an <a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a> value to a 16-bit integer. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">decimalNumber</td><td>The <a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a> value. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>The converted value. </dd></dl>

</div>
</div>
<a class="anchor" id="a5b35d9676fb874067f556ace3e0e1455"></a><!-- doxytag: member="CPTUtilities.h::CPTDecimalStringValue" ref="a5b35d9676fb874067f556ace3e0e1455" args="(NSDecimal decimalNumber)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Classes/NSString_Class/Reference/NSString.html">NSString</a>* <a class="el" href="_c_p_t_utilities_8h.html#a5b35d9676fb874067f556ace3e0e1455">CPTDecimalStringValue</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a>&#160;</td>
          <td class="paramname"><em>decimalNumber</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Converts an <a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a> value to an <a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Classes/NSString_Class/Reference/NSString.html">NSString</a>. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">decimalNumber</td><td>The <a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a> value. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>The converted value. </dd></dl>

</div>
</div>
<a class="anchor" id="a397872f689275f5db199097a5a4bf8ee"></a><!-- doxytag: member="CPTUtilities.h::CPTDecimalSubtract" ref="a397872f689275f5db199097a5a4bf8ee" args="(NSDecimal leftOperand, NSDecimal rightOperand)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a> <a class="el" href="_c_p_t_utilities_8h.html#a397872f689275f5db199097a5a4bf8ee">CPTDecimalSubtract</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a>&#160;</td>
          <td class="paramname"><em>leftOperand</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a>&#160;</td>
          <td class="paramname"><em>rightOperand</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Subtracts one <a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a> from another. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">leftOperand</td><td>The left-hand side of the subtraction operation. </td></tr>
    <tr><td class="paramname">rightOperand</td><td>The right-hand side of the subtraction operation. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>The result of the subtraction. </dd></dl>

</div>
</div>
<a class="anchor" id="a72a99bddbab76461d4f2e3b741aab535"></a><!-- doxytag: member="CPTUtilities.h::CPTDecimalUnsignedCharValue" ref="a72a99bddbab76461d4f2e3b741aab535" args="(NSDecimal decimalNumber)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t <a class="el" href="_c_p_t_utilities_8h.html#a72a99bddbab76461d4f2e3b741aab535">CPTDecimalUnsignedCharValue</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a>&#160;</td>
          <td class="paramname"><em>decimalNumber</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Converts an <a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a> value to an unsigned 8-bit integer. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">decimalNumber</td><td>The <a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a> value. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>The converted value. </dd></dl>

</div>
</div>
<a class="anchor" id="af9a02673f40413173f4ed6915a107362"></a><!-- doxytag: member="CPTUtilities.h::CPTDecimalUnsignedIntegerValue" ref="af9a02673f40413173f4ed6915a107362" args="(NSDecimal decimalNumber)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSUInteger</a> <a class="el" href="_c_p_t_utilities_8h.html#af9a02673f40413173f4ed6915a107362">CPTDecimalUnsignedIntegerValue</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a>&#160;</td>
          <td class="paramname"><em>decimalNumber</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Converts an <a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a> value to an <a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSUInteger</a>. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">decimalNumber</td><td>The <a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a> value. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>The converted value. </dd></dl>

</div>
</div>
<a class="anchor" id="adcbdbd10791c880ee51e1c1e47929df1"></a><!-- doxytag: member="CPTUtilities.h::CPTDecimalUnsignedIntValue" ref="adcbdbd10791c880ee51e1c1e47929df1" args="(NSDecimal decimalNumber)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">unsigned int <a class="el" href="_c_p_t_utilities_8h.html#adcbdbd10791c880ee51e1c1e47929df1">CPTDecimalUnsignedIntValue</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a>&#160;</td>
          <td class="paramname"><em>decimalNumber</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Converts an <a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a> value to an unsigned int. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">decimalNumber</td><td>The <a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a> value. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>The converted value. </dd></dl>

</div>
</div>
<a class="anchor" id="aac297dcc70a6e086654339da0e626a5c"></a><!-- doxytag: member="CPTUtilities.h::CPTDecimalUnsignedLongLongValue" ref="aac297dcc70a6e086654339da0e626a5c" args="(NSDecimal decimalNumber)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint64_t <a class="el" href="_c_p_t_utilities_8h.html#aac297dcc70a6e086654339da0e626a5c">CPTDecimalUnsignedLongLongValue</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a>&#160;</td>
          <td class="paramname"><em>decimalNumber</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Converts an <a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a> value to an unsigned 64-bit integer. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">decimalNumber</td><td>The <a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a> value. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>The converted value. </dd></dl>

</div>
</div>
<a class="anchor" id="a9cde6ebaf91c8fe7f90c0550734586a0"></a><!-- doxytag: member="CPTUtilities.h::CPTDecimalUnsignedLongValue" ref="a9cde6ebaf91c8fe7f90c0550734586a0" args="(NSDecimal decimalNumber)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint32_t <a class="el" href="_c_p_t_utilities_8h.html#a9cde6ebaf91c8fe7f90c0550734586a0">CPTDecimalUnsignedLongValue</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a>&#160;</td>
          <td class="paramname"><em>decimalNumber</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Converts an <a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a> value to an unsigned 32-bit integer. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">decimalNumber</td><td>The <a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a> value. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>The converted value. </dd></dl>

</div>
</div>
<a class="anchor" id="a00cd4fa9bc439191406e291fcc1d73cb"></a><!-- doxytag: member="CPTUtilities.h::CPTDecimalUnsignedShortValue" ref="a00cd4fa9bc439191406e291fcc1d73cb" args="(NSDecimal decimalNumber)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint16_t <a class="el" href="_c_p_t_utilities_8h.html#a00cd4fa9bc439191406e291fcc1d73cb">CPTDecimalUnsignedShortValue</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a>&#160;</td>
          <td class="paramname"><em>decimalNumber</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Converts an <a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a> value to an unsigned 16-bit integer. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">decimalNumber</td><td>The <a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a> value. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>The converted value. </dd></dl>

</div>
</div>
<a class="anchor" id="a794f89cd14d4cfb21bf8c050b2df8237"></a><!-- doxytag: member="CPTUtilities.h::CPTExpandedRange" ref="a794f89cd14d4cfb21bf8c050b2df8237" args="(NSRange range, NSInteger expandBy)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSRange</a> <a class="el" href="_c_p_t_utilities_8h.html#a794f89cd14d4cfb21bf8c050b2df8237">CPTExpandedRange</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSRange</a>&#160;</td>
          <td class="paramname"><em>range</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSInteger</a>&#160;</td>
          <td class="paramname"><em>expandBy</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Expands an <a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSRange</a> by the given amount. </p>
<p>The <code>location</code> of the resulting <a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSRange</a> will be non-negative.</p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">range</td><td>The <a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSRange</a> to expand. </td></tr>
    <tr><td class="paramname">expandBy</td><td>The amount the expand the range by. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>The expanded range. </dd></dl>

</div>
</div>
<a class="anchor" id="afeb1ea1e2d6486b67ef47c4bf8e3661f"></a><!-- doxytag: member="CPTUtilities.h::CPTOrthogonalCoordinate" ref="afeb1ea1e2d6486b67ef47c4bf8e3661f" args="(CPTCoordinate coord)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="_c_p_t_definitions_8h.html#a10709b6abd0a9ee1769345ef51b2fcd7">CPTCoordinate</a> <a class="el" href="_c_p_t_utilities_8h.html#afeb1ea1e2d6486b67ef47c4bf8e3661f">CPTOrthogonalCoordinate</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="_c_p_t_definitions_8h.html#a10709b6abd0a9ee1769345ef51b2fcd7">CPTCoordinate</a>&#160;</td>
          <td class="paramname"><em>coord</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Determines the CPTCoordinate that is orthogonal to the one provided. </p>
<p>The current implementation is two-dimensional--X is orthogonal to Y and Y is orthogonal to X.</p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">coord</td><td>The CPTCoordinate. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>The orthogonal CPTCoordinate. </dd></dl>

</div>
</div>
<a class="anchor" id="a344d9cc450b8f69583b387bc0c5d29cd"></a><!-- doxytag: member="CPTUtilities.h::CPTRGBAColorFromCGColor" ref="a344d9cc450b8f69583b387bc0c5d29cd" args="(CGColorRef color)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="_c_p_t_definitions_8h.html#a722329b2597462efab5dc7fc7057b27c">CPTRGBAColor</a> <a class="el" href="_c_p_t_utilities_8h.html#a344d9cc450b8f69583b387bc0c5d29cd">CPTRGBAColorFromCGColor</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="elRef" href="http://developer.apple.com/iphone/library/documentation/GraphicsImaging/Reference/CGColor/Reference/reference.html#//apple_ref/doc/c_ref/CGColorRef.html">CGColorRef</a>&#160;</td>
          <td class="paramname"><em>color</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Extracts the color information from a <a class="elRef" href="http://developer.apple.com/iphone/library/documentation/GraphicsImaging/Reference/CGColor/Reference/reference.html#//apple_ref/doc/c_ref/CGColorRef.html">CGColorRef</a> and returns it as a CPTRGBAColor. </p>
<p>Supports RGBA and grayscale colorspaces.</p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">color</td><td>The color. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>The RGBA components of the color. </dd></dl>

</div>
</div>
<a class="anchor" id="aedaaa162648bc0dc9f186998fdd67dbb"></a><!-- doxytag: member="CPTUtilities.h::CPTStringFromPoint" ref="aedaaa162648bc0dc9f186998fdd67dbb" args="(CGPoint p)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Classes/NSString_Class/Reference/NSString.html">NSString</a>* <a class="el" href="_c_p_t_utilities_8h.html#aedaaa162648bc0dc9f186998fdd67dbb">CPTStringFromPoint</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="elRef" href="http://developer.apple.com/iPhone/library/documentation/GraphicsImaging/Reference/CGGeometry/Reference/reference.html#//apple_ref/doc/c_ref/CGPoint.html">CGPoint</a>&#160;</td>
          <td class="paramname"><em>p</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Creates a string representation of the given point. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">p</td><td>The point. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>A string with the format <code> {x, y}</code>. </dd></dl>

</div>
</div>
<a class="anchor" id="a4fe15dc4f56e08d4cb0e6e0480f7a72d"></a><!-- doxytag: member="CPTUtilities.h::CPTStringFromRect" ref="a4fe15dc4f56e08d4cb0e6e0480f7a72d" args="(CGRect r)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Classes/NSString_Class/Reference/NSString.html">NSString</a>* <a class="el" href="_c_p_t_utilities_8h.html#a4fe15dc4f56e08d4cb0e6e0480f7a72d">CPTStringFromRect</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="elRef" href="http://developer.apple.com/iPhone/library/documentation/GraphicsImaging/Reference/CGGeometry/Reference/reference.html#//apple_ref/doc/c_ref/CGRect.html">CGRect</a>&#160;</td>
          <td class="paramname"><em>r</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Creates a string representation of the given rectangle. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">r</td><td>The rectangle. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>A string with the format <code> {{x, y}, {width, height}}</code>. </dd></dl>

</div>
</div>
<a class="anchor" id="adcdd93e329eee9eba136f27ddc2c735f"></a><!-- doxytag: member="CPTUtilities.h::CPTStringFromSize" ref="adcdd93e329eee9eba136f27ddc2c735f" args="(CGSize s)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Classes/NSString_Class/Reference/NSString.html">NSString</a>* <a class="el" href="_c_p_t_utilities_8h.html#adcdd93e329eee9eba136f27ddc2c735f">CPTStringFromSize</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="elRef" href="http://developer.apple.com/iPhone/library/documentation/GraphicsImaging/Reference/CGGeometry/Reference/reference.html#//apple_ref/doc/c_ref/CGSize.html">CGSize</a>&#160;</td>
          <td class="paramname"><em>s</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Creates a string representation of the given size. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">s</td><td>The size. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>A string with the format <code> {width, height}</code>. </dd></dl>

</div>
</div>
</div><!-- contents -->
</div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="_c_p_t_utilities_8h.html">CPTUtilities.h</a>      </li>

    <li class="footer">Generated by <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a></li>
   </ul>
 </div>


</body>
</html>
